<?php defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.methods' );?>
<!-- 
<h2 class="contentheading"><?php echo JText::_('HIZTEGIFORM_TITLE');?></h2>
<p><?php echo JText::_('HIZTEGIFORM_DESC');?></p>
 -->
<form action="index.php" method="post" onsubmit="fillLangNames(this); return validateForm(this);">
	
	<div style="margin:0 auto 0 auto; width:600px; padding-top:20px">
		<div style="width:100%;clear:left;clear:right">
			<div style="float:left">
				<select id="langOri" name="langOri" style="width: 200px; text-align: center;">
					<?php foreach($this->languages as $language): ?>
						<option value="<?php echo $language->getId(); ?>"><?php echo JText::_('LANG_'.strtoupper($language->getId()));?></option>
					<?php endforeach; ?>
				</select>
			</div>
			<div style="float:right">
				<select id="langDest" name="langDest" style="width: 200px; text-align: center;">
					<?php foreach($this->languages as $language): ?>
						<option value="<?php echo $language->getId(); ?>"><?php echo JText::_('LANG_'.strtoupper($language->getId()));?></option>
					<?php endforeach; ?>
				</select>
			</div>
		</div>
		<div style="width:100%;clear:left;clear:right;padding-top:25px">
			<center>
				<button type="submit"  id="submit" value="<?php echo JText::_('HIZTEGIFORM_BUTTON');?>"><img width="140px" height="140px" src="<?php echo 'components/'.$this->option.'/images/download_button.png' ?>"/></button>
				<p id="loadText" style="display:none">20</p>
				<img id="loadImage" style="display:none" src="<?php echo 'components/'.$this->option.'/images/loadHiztegi.gif' ?>" title="<?php echo JText::_('HIZTEGIFORM_LOADIMAGE'); ?>"/>
			</center>
		</div>
	</div>
	
	<input type="hidden" name="langOriName" value="" />
	<input type="hidden" name="langDestName" value="" />
	<input type="hidden" name="task" value="getHiztegi" />
	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="format" value="pdf" />
</form>
<div style="margin-top:30px">
<div style="float:right; padding-top:25px">
	<button type="button"  id="add_button">
		<img width="70px" height="70px" src="<?php echo 'components/'.$this->option.'/images/add_button.png' ?>"/>
	</button>
</div>
</div>